package dev.ece.util.lib;

public class IntOffset {

	public int head;
	
	public int foot;
	
	/**
	 * 是否垂直
	 */
	private boolean vertical;

	public IntOffset() {}
	
	public IntOffset(int head, int foot) {
		this(head, foot, false);
	}
	
	public IntOffset(int head, int foot, boolean vertical) {
		this.set(head, foot);
	}
	
	public void set(int head, int foot) {
		this.head = head;
		this.foot = foot;
	}
	
	public void set(IntOffset offset) {
		this.set(offset.head, offset.head);
	}
	
	public int getHead() {
		return head;
	}

	public void setHead(int head) {
		this.head = head;
	}

	public int getFoot() {
		return foot;
	}

	public void setFoot(int foot) {
		this.foot = foot;
	}

	public boolean isVertical() {
		return vertical;
	}

}
